package com.gitee.dupe.oauth.dto;

import com.gitee.dupe.oauth.enumeration.LoginNameType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author LYH
 */
@Data
@ApiModel(value = "获取重置验证码")
public class GetResetPasswordCodeDTO {
    @NotNull
    @ApiModelProperty(value = "用户名来源", required = true)
    private LoginNameType loginNameType;
    @NotBlank
    @ApiModelProperty(value = "用户名", required = true)
    private String loginName;
    @NotBlank
    @ApiModelProperty(value = "key", required = true)
    private String key;
}
